home *** CD-ROM | disk | FTP | other *** search
- head 1.6;
- branch ;
- access ;
- symbols sprited:1.6.1;
- locks ; strict;
- comment @ * @;
-
-
- 1.6
- date 88.07.28.17.18.33; author ouster; state Exp;
- branches 1.6.1.1;
- next 1.5;
-
- 1.5
- date 88.07.28.16.40.53; author ouster; state Exp;
- branches ;
- next 1.4;
-
- 1.4
- date 88.07.25.14.10.13; author ouster; state Exp;
- branches ;
- next 1.3;
-
- 1.3
- date 88.07.21.09.37.00; author ouster; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 88.07.11.16.02.01; author ouster; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 88.06.10.16.23.46; author ouster; state Exp;
- branches ;
- next ;
-
- 1.6.1.1
- date 91.12.02.19.57.10; author kupfer; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
- 1.6
- log
- @More lint.
- @
- text
- @/*
- * fprintf.c --
- *
- * Source code for the "fprintf" library procedure.
- *
- * Copyright 1988 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- */
-
- #ifndef lint
- static char rcsid[] = "$Header: fprintf.c,v 1.5 88/07/28 16:40:53 ouster Exp $ SPRITE (Berkeley)";
- #endif not lint
-
- #include <stdio.h>
- #include <varargs.h>
-
- /*
- *----------------------------------------------------------------------
- *
- * fprintf --
- *
- * Format and print one or more values, writing the output onto
- * stream. See the manual page for details of how the format
- * string is interpreted.
- *
- * Results:
- * The return value is a count of the number of characters
- * written to stream.
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
- #ifndef lint
- int
- fprintf(va_alist)
- va_dcl /* FILE *stream, then char *format, then any
- * number of additional values to be printed
- * as described by format. */
- {
- FILE *stream;
- char *format;
- va_list args;
-
- va_start(args);
- stream = va_arg(args, FILE *);
- format = va_arg(args, char *);
- return vfprintf(stream, format, args);
- }
- #else
- /* VARARGS2 */
- /* ARGSUSED */
- int
- fprintf(stream, format)
- FILE *stream;
- char *format;
- {
- return 0;
- }
- #endif lint
- @
-
-
- 1.6.1.1
- log
- @Initial branch for Sprite server.
- @
- text
- @d17 1
- a17 1
- static char rcsid[] = "$Header: /sprite/src/lib/c/stdio/RCS/fprintf.c,v 1.6 88/07/28 17:18:33 ouster Exp $ SPRITE (Berkeley)";
- @
-
-
- 1.5
- log
- @Still cleaning stuff related to lint libraries.
- @
- text
- @d17 1
- a17 1
- static char rcsid[] = "$Header: fprintf.c,v 1.4 88/07/25 14:10:13 ouster Exp $ SPRITE (Berkeley)";
- d60 1
- @
-
-
- 1.4
- log
- @Generate more complete lint library information.
- @
- text
- @d17 1
- a17 1
- static char rcsid[] = "$Header: fprintf.c,v 1.3 88/07/21 09:37:00 ouster Exp $ SPRITE (Berkeley)";
- d42 1
- a42 1
- #ifndef LINTLIB
- d67 1
- a67 1
- #endif LINTLIB
- @
-
-
- 1.3
- log
- @Change to use vfprintf instead of _doprnt.
- @
- text
- @d17 1
- a17 1
- static char rcsid[] = "$Header: fprintf.c,v 1.2 88/07/11 16:02:01 ouster Exp $ SPRITE (Berkeley)";
- d42 1
- a42 1
- /* VARARGS0 */
- d58 10
- @
-
-
- 1.2
- log
- @If using varargs, don't have any arguments preceding the va_alist.
- @
- text
- @d17 1
- a17 1
- static char rcsid[] = "$Header: fprintf.c,v 1.1 88/06/10 16:23:46 ouster Exp $ SPRITE (Berkeley)";
- d56 1
- a56 1
- return _doprnt(format, &args, stream);
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d17 1
- a17 1
- static char rcsid[] = "$Header: atoi.c,v 1.1 88/04/28 17:20:23 ouster Exp $ SPRITE (Berkeley)";
- d20 2
- a21 2
- #include "stdio.h"
- #include "varargs.h"
- d42 1
- d44 4
- a47 9
- fprintf(stream, format, va_alist)
- FILE *stream; /* I/O stream where output characters should
- * be written. */
- char *format; /* Contains literal text and format control
- * sequences indicating how elements of
- * va_alist are to be printed. See the
- * manual page for details. */
- va_dcl /* Variable number of values to be formatted
- * and printed. */
- d49 2
- d54 2
- @
-